package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.SysTopicComment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCommentMapper;
import com.ruoyi.system.domain.SysComment;
import com.ruoyi.system.service.ISysCommentService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@Service
public class SysCommentServiceImpl implements ISysCommentService 
{
    @Autowired
    private SysCommentMapper sysCommentMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param commentid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysComment selectSysCommentByCommentid(Long commentid)
    {
        return sysCommentMapper.selectSysCommentByCommentid(commentid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysComment 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysComment> selectSysCommentList(SysComment sysComment)
    {
        return sysCommentMapper.selectSysCommentList(sysComment);
    }
    @Override
    public List<SysComment> selectSysCommentList1(SysComment sysComment)
    {
        return sysCommentMapper.selectSysCommentList1(sysComment);
    }
    /**
     * 新增【请填写功能名称】
     * 
     * @param sysComment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysComment(SysComment sysComment)
    {
        return sysCommentMapper.insertSysComment(sysComment);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysComment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysComment(SysComment sysComment)
    {
        return sysCommentMapper.updateSysComment(sysComment);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param commentids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysCommentByCommentids(String commentids)
    {
        return sysCommentMapper.deleteSysCommentByCommentids(Convert.toStrArray(commentids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param commentid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysCommentByCommentid(Long commentid)
    {
        return sysCommentMapper.deleteSysCommentByCommentid(commentid);
    }
}
